/*************************************************
 Copyright (c) 2017 
 Copyright (c) 2017 bruce <3350207067@qq.com>

 Author:    bruce
 Version:   1.0
 Date:      2017-10-19
 Description:
 
 ************************************************/
 

#ifndef FF_SUBTITLE_H
#define FF_SUBTITLE_H


#include "ijkplayer.h"

typedef struct SubUrl{
    char *pSubIP;
    char *pSubPort;
    char *pSubPath;
}SubUrl;

typedef struct SubData{
    int number;

    int beginSubTime;
    int endSubTime;

    float posX;
    float posY;
    
    char *data;
    struct SubData * next;
}SubData;
/* end of added by bruce 2017-07-24 */


void SUB_subtitle_entry(IjkMediaPlayer *ijkmp, const char *url);
void SUB_subtitle_release(IjkMediaPlayer *ijkmp);


extern int video_width;
extern int video_height;
extern int sub_seek_req;

#endif
